﻿
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using BLL;

namespace BO
{
	public partial class Account
	{
		[EntityRef("MasterAccounts", BLL.Accounts.Columns.MasterAccountID)]
		public MasterAccount MasterAccount { get; set; }
		

		[EntityRef("Posts", BLL.Posts.Columns.AccountID)]
		public List<Post> Posts { get; set; }

		[EntityRef("TracedAccounts", BLL.TracedAccounts.Columns.AccountID)]
		public List<TracedAccount> TracedAccounts { get; set; }

		[EntityRef("AccountStats", BLL.AccountStats.Columns.AccountID)]
		public List<AccountStat> AccountStats { get; set; }

	}
	
	public partial class MasterAccount
	{
		[EntityRef("Profiles", BLL.MasterAccounts.Columns.ProfileID)]
		public Profile Profile { get; set; }

		[EntityRef("Accounts", BLL.Accounts.Columns.MasterAccountID)]
		public List<Account> Accounts { get; set; }


	}
	public partial class Post
	{
		[EntityRef("Accounts", BLL.Posts.Columns.AccountID)]
		public Account Account { get; set; }

		[EntityRef("Users", BLL.Posts.Columns.PostingUserID)]
		public User User { get; set; }

		[EntityRef("PostStats", BLL.PostStats.Columns.PostID)]
		public List<PostStat> PostStats { get; set; }

		[EntityRef("UnProcessedPosts", BLL.UnProcessedPosts.Columns.PostID)]
		public List<UnProcessedPost> UnProcessedPosts { get; set; }


	}
	public partial class PostStat
	{
		[EntityRef("Posts", BLL.PostStats.Columns.PostID)]
		public Post Post { get; set; }


	}
	public partial class Profile
	{
		[EntityRef("MasterAccounts", BLL.MasterAccounts.Columns.ProfileID)]
		public List<MasterAccount> MasterAccounts { get; set; }

		[EntityRef("Users", BLL.Users.Columns.ProfileID)]
		public List<User> Users { get; set; }


	}
	public partial class TracedAccount
	{
		[EntityRef("Accounts", BLL.TracedAccounts.Columns.AccountID)]
		public Account Account { get; set; }

		[EntityRef("TraceStats", BLL.TraceStats.Columns.TraceAccountID)]
		public List<TraceStat> TraceStats { get; set; }


	}
	public partial class TraceStat
	{		
		[EntityRef("TracedAccounts", BLL.TraceStats.Columns.TraceAccountID)]
		public TracedAccount TracedAccount { get; set; }
	}
	public partial class UnProcessedPost
	{
		[EntityRef("Posts", BLL.UnProcessedPosts.Columns.PostID)]
		public Post Post { get; set; }


	}
	public partial class User
	{
		[EntityRef("Profiles", BLL.Users.Columns.ProfileID)]
		public Profile Profile { get; set; }

		[EntityRef("Posts", BLL.Posts.Columns.PostingUserID)]
		public List<Post> Posts { get; set; }


	}
}